<taglib name='html' />
<include file="$includeFile.public_header" />
<!--或是"__ADMIN__/header"-->

<!--  右边内容   -->
<div class="list_tit">
    <span class="tit_left">
        您当前的位置：首页 > {$dao_title}管理 > {$dao_title}
        <php>if($_GET['id']){echo '编辑';}else{echo '添加';}</php>
    </span>
    <a href="__URL__/index/position_id/{$Think.get.position_id}" class="tit_right">+管理{$dao_title}</a>
</div>
<div class="page_list">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="list_table">
        <tr>
            <th align="left" style="text-indent:5px;">
                {$dao_title}
                <present name="$Think.get.id">
                    编辑
                    <else/>
                    添加
                </present>
            </th>
        </tr>
    </table>
    
    <form action="__URL__/<php>if($_GET['id']){echo 'update';}else{echo 'insert';}</php>/position_id/{$Think.get.position_id}" name="art_add" method="post" enctype="multipart/form-data">
    <input type="hidden" name="id" value="{$Think.get.id}" />
    <input type="hidden" name="position_id" value="{$Think.get.position_id}" />
    <table cellpadding="0" border="0" width="100%" class="add_table">
        <tr style="<if condition='empty($vo[id])'>display:none</if>">
            <th>地区ID:</th>
            <td>
                <input type="text" name="sort_order" size="35" maxlength="5" value="{$vo.id}" class="page_txt" />
            </td>
        </tr>
        <tr>
            <th width="100">地区名称:</th>
            <td>
                <input type="text" name="name" value="{$vo.name}" size="35" maxlength="64" class="page_txt" />
            </td>
        </tr>
        <tr>
            <th width="100" >上级:</th>
            <td align="left">
                <html:select name="parent_id" options="parentArea" selected="vo[parent_id]" style="select_width" />
            </td>
        </tr>
        <tr>
            <th>地区排序:</th>
            <td>
                <input type="text" name="sort_order" size="35" maxlength="5" value="{$vo.sort_order|default='255'}" class="page_txt" />
            </td>
        </tr>
        <tr height="60">
            <th>&nbsp;</th>
            <td valign="middle">
                <input type="submit" name="edit_btn" class="btn" value="提 交" />
            </td>
        </tr>
</table>
</form>
<div class="clr"></div>
</div>

<include file="$includeFile.public_footer" />